package com.jd.finance.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jd.finance.core.pojo.entity.Role;
import com.jd.finance.result.BaseResult;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-20
 */
public interface RoleService extends IService<Role> {

    /**
     * 修改关于我们
     * @param uid
     * @return
     */
    BaseResult selectAllRoleInfo(@Param("uid") Integer uid);


    /**
     * 添加角色信息
     * @param uid hr的id
     * @param roleName 角色名称
     * @param roleExplain 角色说明
     * @param roleOrgan 所属部门
     * @param request
     * @return
     */
    BaseResult addRoleInfo(@Param("uid") Integer uid, @Param("roleName") String roleName, @Param("roleExplain") String roleExplain, @Param("roleOrgan") String roleOrgan, @Param("request") HttpServletRequest request);
}
